var app=require('express')();
var port=3032;

app.use(require('body-parser')());
app.get('/test',(req,res)=>{
    res.sendFile(__dirname+'/views/post.html');
});

app.get('/post',(req,res)=>{
    console.log('query:',req.query);
    res.send('ok');
});

app.post('/post',(req,res)=>{
    console.log('body:',req.body);
    res.send('ok');
});

app.listen(port,()=>{
    console.log(`port@${port} -- ${new Date().toLocaleString()}`);
});